package com.c6906.vdam.dps.dao;

import com.c6906.vdam.dps.entity.BladeUnit;
import com.c6906.vdam.dps.entity.TerminalBusinessInfo;
import com.c6906.vdam.dps.entity.VehiclesLast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : TAOHUIQI
 * @Date: 2024/6/15 20:29
 * @Description:
 */
@Mapper
public interface TerminalBusinessInfoDAO {

    /**
     * 查询达梦数据库所有设备基本信息List
     * @return
     */
    List<TerminalBusinessInfo> getTerminalBusinessInfoList(@Param("pageSize") int pageSize, @Param("pageNum") int pageNum);

    /**
     * 根据设备编号查询单个设备基本信息
     * @return
     */
    List<TerminalBusinessInfo> getTerminalBusinessBySN(@Param("sn") String sn);

    /**
     * 根据设备编号查询单个设备基本信息
     * @return
     */
    List<TerminalBusinessInfo> getTerminalBusinessBySNList(@Param("snList") List<String> sn);

    /**
     * 查询达梦数据库终端最新轨迹信息List
     * @return
     */
    List<VehiclesLast> getVehiclesLastMapInfoList(@Param("pageSize") int pageSize, @Param("pageNum") int pageNum);

    boolean updateBatchByTerminalSn(List<VehiclesLast> list);

    BladeUnit getBladeUnitById(@Param("unitId") Long unitId);
}
